package view;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.FlowLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.SwingConstants;
import javax.swing.ImageIcon;
import java.awt.Font;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;

public class MenuPrincipal extends JInternalFrame {

	/**
	 * Executar
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MenuPrincipal frame = new MenuPrincipal();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MenuPrincipal() {
		getContentPane().setBackground(Color.WHITE);

		JButton btnProdutos = new JButton("");
		btnProdutos.setSize(128, 128);
		btnProdutos.setBackground(Color.RED);
		btnProdutos.setFont(new Font("Tahoma", Font.BOLD, 10));
		btnProdutos
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377902961_palet02.png"));
		btnProdutos.setVerticalAlignment(SwingConstants.BOTTOM);

		JButton btnClientes = new JButton("");
		btnClientes.setSize(128, 128);
		btnClientes.setFont(new Font("Tahoma", Font.BOLD, 11));
		btnClientes.setVerticalAlignment(SwingConstants.BOTTOM);
		btnClientes
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377903231_Client_Male_Light.png"));
		btnClientes.setBackground(Color.RED);

		JButton btnPagamentos = new JButton("");
		btnPagamentos.setSize(128, 128);
		btnPagamentos.setBackground(Color.RED);
		btnPagamentos
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377903020_Profit_3D.png"));

		JButton btnRelatoriosF = new JButton("");
		btnRelatoriosF.setSize(128, 128);
		btnRelatoriosF
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377906145_sales-report.png"));
		btnRelatoriosF.setBackground(Color.RED);

		JButton btnRelatoriosE = new JButton("");
		btnClientes.setSize(128, 128);
		btnRelatoriosE
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377907030_product-sales-report.png"));
		btnRelatoriosE.setBackground(Color.RED);

		JButton btnTelefoneSuporte = new JButton("");
		btnTelefoneSuporte.setSize(128, 128);
		btnTelefoneSuporte
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377909445_Businessman.png"));
		btnTelefoneSuporte.setSize(128, 128);
		btnTelefoneSuporte.setBackground(Color.RED);

		JButton btnTrocarUsuario = new JButton("");
		btnTrocarUsuario.setSize(128, 128);
		btnTrocarUsuario.setBackground(Color.RED);
		btnTrocarUsuario
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377912738_010.png"));
		btnTrocarUsuario.setSize(128, 128);

		JButton btnTrocarSenha = new JButton("");
		btnTrocarSenha.setSize(128, 128);
		btnTrocarSenha.setBackground(Color.RED);
		btnTrocarSenha
				.setIcon(new ImageIcon(
						"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377912129_application-pgp-signature.png"));

		JButton btnSair = new JButton("");
		btnSair.setSize(128, 128);
		btnSair.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

			}
		});
		btnSair.setBackground(Color.RED);
		btnSair.setIcon(new ImageIcon(
				"C:\\Users\\devforsystem\\Pictures\\icones Devon\\1377912417_exit.png"));

		JLabel lblUsurio = new JLabel("Usu\u00E1rio:");
		lblUsurio.setFont(new Font("Tahoma", Font.BOLD, 12));

		JLabel lblValidade = new JLabel("Validade:");
		lblValidade.setFont(new Font("Tahoma", Font.BOLD, 12));
		GroupLayout groupLayout = new GroupLayout(getContentPane());
		groupLayout
				.setHorizontalGroup(groupLayout
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								groupLayout
										.createSequentialGroup()
										.addGroup(
												groupLayout
														.createParallelGroup(
																Alignment.LEADING)
														.addGroup(
																groupLayout
																		.createSequentialGroup()
																		.addComponent(
																				btnClientes,
																				GroupLayout.PREFERRED_SIZE,
																				144,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnProdutos,
																				GroupLayout.PREFERRED_SIZE,
																				147,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnRelatoriosE,
																				GroupLayout.PREFERRED_SIZE,
																				137,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnPagamentos,
																				GroupLayout.PREFERRED_SIZE,
																				144,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnRelatoriosF,
																				GroupLayout.PREFERRED_SIZE,
																				141,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnTelefoneSuporte,
																				GroupLayout.PREFERRED_SIZE,
																				134,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnTrocarUsuario,
																				GroupLayout.PREFERRED_SIZE,
																				136,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				btnTrocarSenha,
																				GroupLayout.DEFAULT_SIZE,
																				132,
																				Short.MAX_VALUE))
														.addGroup(
																Alignment.TRAILING,
																groupLayout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				lblUsurio,
																				GroupLayout.PREFERRED_SIZE,
																				86,
																				GroupLayout.PREFERRED_SIZE)))
										.addPreferredGap(
												ComponentPlacement.RELATED)
										.addGroup(
												groupLayout
														.createParallelGroup(
																Alignment.LEADING)
														.addGroup(
																groupLayout
																		.createSequentialGroup()
																		.addComponent(
																				btnSair,
																				GroupLayout.DEFAULT_SIZE,
																				147,
																				Short.MAX_VALUE)
																		.addContainerGap())
														.addGroup(
																Alignment.TRAILING,
																groupLayout
																		.createSequentialGroup()
																		.addComponent(
																				lblValidade)
																		.addGap(50)))));
		groupLayout
				.setVerticalGroup(groupLayout
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								Alignment.TRAILING,
								groupLayout
										.createSequentialGroup()
										.addGroup(
												groupLayout
														.createParallelGroup(
																Alignment.TRAILING)
														.addComponent(
																btnRelatoriosF,
																Alignment.LEADING,
																GroupLayout.DEFAULT_SIZE,
																80,
																Short.MAX_VALUE)
														.addComponent(
																btnTrocarSenha,
																Alignment.LEADING,
																GroupLayout.DEFAULT_SIZE,
																80,
																Short.MAX_VALUE)
														.addComponent(
																btnSair,
																Alignment.LEADING,
																GroupLayout.DEFAULT_SIZE,
																80,
																Short.MAX_VALUE)
														.addGroup(
																Alignment.LEADING,
																groupLayout
																		.createParallelGroup(
																				Alignment.TRAILING,
																				false)
																		.addComponent(
																				btnTrocarUsuario,
																				Alignment.LEADING,
																				GroupLayout.DEFAULT_SIZE,
																				GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				btnTelefoneSuporte,
																				Alignment.LEADING,
																				GroupLayout.DEFAULT_SIZE,
																				GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				btnPagamentos,
																				Alignment.LEADING,
																				GroupLayout.DEFAULT_SIZE,
																				GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				btnRelatoriosE,
																				Alignment.LEADING,
																				GroupLayout.DEFAULT_SIZE,
																				GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				btnClientes,
																				Alignment.LEADING,
																				GroupLayout.DEFAULT_SIZE,
																				GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				btnProdutos,
																				Alignment.LEADING,
																				GroupLayout.DEFAULT_SIZE,
																				80,
																				Short.MAX_VALUE)))
										.addGap(537)
										.addGroup(
												groupLayout
														.createParallelGroup(
																Alignment.BASELINE)
														.addComponent(
																lblUsurio,
																GroupLayout.PREFERRED_SIZE,
																22,
																GroupLayout.PREFERRED_SIZE)
														.addComponent(
																lblValidade))
										.addContainerGap()));
		getContentPane().setLayout(groupLayout);
		setBounds(100, 100, 1336, 700);

		JMenuBar Mcadastro = new JMenuBar();
		setJMenuBar(Mcadastro);

		JMenu mnCadastro = new JMenu("Cadastro");
		Mcadastro.add(mnCadastro);

		JMenuItem mntmProdutos = new JMenuItem("Produtos");
		mnCadastro.add(mntmProdutos);

		JMenuItem mntmClientes = new JMenuItem("Clientes");
		mnCadastro.add(mntmClientes);

		JMenuItem mntmFuncionarios = new JMenuItem("Funcion\u00E1rios");
		mnCadastro.add(mntmFuncionarios);

		JMenuItem mntmFornecedores = new JMenuItem("Fornecedores");
		mnCadastro.add(mntmFornecedores);

		JMenuItem mntmCartes = new JMenuItem("Cart\u00F4es");
		mnCadastro.add(mntmCartes);

		JMenuItem mntmLojas = new JMenuItem("Lojas");
		mnCadastro.add(mntmLojas);

		JMenuItem mntmUsurios = new JMenuItem("Usu\u00E1rios");
		mnCadastro.add(mntmUsurios);

		JMenu mnEstoque = new JMenu("Estoque");
		Mcadastro.add(mnEstoque);

		JMenu mnEntradaDeMercadoria = new JMenu("Entrada de Mercadoria");
		mnEstoque.add(mnEntradaDeMercadoria);

		JMenuItem mntmEntradaDeNota = new JMenuItem("Entrada de Nota Fiscal");
		mnEntradaDeMercadoria.add(mntmEntradaDeNota);

		JMenuItem mntmEntradaESaida = new JMenuItem(
				"Entrada e Sa\u00EDda Avulsa");
		mnEntradaDeMercadoria.add(mntmEntradaESaida);

		JMenuItem mntmInventario = new JMenuItem("Invent\u00E1rio");
		mnEstoque.add(mntmInventario);

		JMenuItem mntmRelatoriosE = new JMenuItem("Relat\u00F3rios");
		mnEstoque.add(mntmRelatoriosE);

		JMenu mnFinanceiro = new JMenu("Financeiro");
		Mcadastro.add(mnFinanceiro);

		JMenuItem mntmRelatoriosF = new JMenuItem("Relat\u00F3rios");
		mnFinanceiro.add(mntmRelatoriosF);

		JMenuItem mntmContaCorrente = new JMenuItem("Conta Corrente");
		mnFinanceiro.add(mntmContaCorrente);

		JMenu mnContasAPagar = new JMenu("Contas a Pagar");
		mnFinanceiro.add(mnContasAPagar);

		JMenuItem mntmPagamentos = new JMenuItem("Pagamentos");
		mnContasAPagar.add(mntmPagamentos);

		JMenuItem mntmCentroDeCusto = new JMenuItem("Centro de Custo");
		mnContasAPagar.add(mntmCentroDeCusto);

		JMenuItem mntmGrupoFinanceiro = new JMenuItem("Grupo Financeiro");
		mnContasAPagar.add(mntmGrupoFinanceiro);

		JMenuItem mntmClassificacaoFinanceira = new JMenuItem(
				"Classifica\u00E7\u00E3o Financeira");
		mnContasAPagar.add(mntmClassificacaoFinanceira);

		JMenu mnContasAReceber = new JMenu("Contas a Receber");
		mnFinanceiro.add(mnContasAReceber);

		JMenuItem mncartoes = new JMenuItem("Cart\u00F5es");
		mnContasAReceber.add(mncartoes);

		JMenuItem mnDinheiro = new JMenuItem("Dinheiro");
		mnContasAReceber.add(mnDinheiro);

		JMenuItem mnCheque = new JMenuItem("Cheque");
		mnContasAReceber.add(mnCheque);

		JMenu mnManutencao = new JMenu("Manuten\u00E7\u00E3o");
		Mcadastro.add(mnManutencao);

		JMenuItem mntmConfiguracoes = new JMenuItem("Configura\u00E7\u00F5es");
		mnManutencao.add(mntmConfiguracoes);

		JMenu mnSair = new JMenu("Sair");
		Mcadastro.add(mnSair);

		JMenuItem mntmSairDoSistema = new JMenuItem("Sair do sistema");
		mnSair.add(mntmSairDoSistema);

	}
}
